package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class Test1 {
    @RequestMapping("/hello")
    public String test1(Model model){
        model.addAttribute("message","hello");
        return "test";
    }

    @RequestMapping("/aaa")
    @ResponseBody
    public String aaa(){
        return "aaa";
    }
}
